package com.es.order.service;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 描述:
 * Old-AgeCareSystem-
 *
 * @author Derek
 * @create 2021-12-09 12:14
 */
@Service
public class OrderRabbitService {

    @Autowired
    private RabbitTemplate template;

    public void sendOrderId(Long orderId){
        template.convertAndSend("order-status-exchange","order-status-key",orderId+"");
    }
}
